package ex6;

public class Cos extends Function implements Ifun {

    public Cos() {
    }

    public Cos(String name, double a) {
        super(name, a);
    }

    @Override
    public void getValue() {
        double c = Math.toRadians(super.getA());
        System.out.println(super.getName()+((int)super.getA())+"="+Math.cos(c));
    }
}
